import request from '@/utils/request'

// 收货地址列表
export function addressList(data) {
    return request({
        url: '/mall/address/list',
        method: 'post',
        data: data
    })
}

// 收货地址详情
export function addressDetail(data) {
    return request({
        url: '/mall/address/detail',
        method: 'get',
        params: data
    })
}

// 保存收货地址
export function addressSave(data) {
    return request({
        url: '/mall/address/save',
        method: 'post',
        data: data
    })
}

// 删除收货地址
export function addressDelete(data) {
    return request({
        url: '/mall/address/delete',
        method: 'post',
        data: data
    })
}

// 获取区域列表
export function regionList(data) {
    return request({
        url: '/mall/region/list',
        method: 'get',
        params: data
    })
}
